package com.ddwl.gate.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.gate.mapper.MobileNumInfoMapper;
import com.ddwl.gate.model.MobileNumInfo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author hemiaojun
 * @Date 2020/10/13 19:08
 */
@Repository
public class MobileNumInfoDao extends TkDao<MobileNumInfoMapper, MobileNumInfo> {

    @Resource
    private MobileNumInfoMapper mobileNumInfoMapper;

    public List<MobileNumInfo> getAll() {
        Example example = new Example(MobileNumInfo.class);
        return mobileNumInfoMapper.selectByExample(example);
    }

    public void changeId(Map<String, String> map) {
        mobileNumInfoMapper.changeId(map);
    }
}
